<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
	<div id="contentmid">
        <div class="midheading">
          <h2>Sfoglia per categorie</h2>
        </div>
        <div class="midtxt">
        <div class="DynamicTree">
        <div class="top">Catalogo</div>
        <div class="wrap" id="tree">
        	<s:iterator value="alberoCategorie">
        	
        	   <s:if test="idCategoria != -1 && childrenCategories.size() != 0">
        		
					<div class="folder"><a href="<s:url action='catalogo2' escapeAmp="flase"><s:param name="idCategoria" value="idCategoria"/></s:url>"><s:property value="nome"/> (<s:property value="numeroElementi"/>)</a>  

					
					
				</s:if>
				<s:elseif test="idCategoria != -1 && childrenCategories.size() == 0">
				    <div class="doc"><a href="<s:url action='catalogo2' escapeAmp="flase"><s:param name="idCategoria" value="idCategoria"/></s:url>"><s:property value="nome"/> (<s:property value="numeroElementi"/>)</a></div>
				</s:elseif>
                <s:elseif test="idCategoria == -1">
                  </div> 
                </s:elseif>
			</s:iterator>
		</div>
        </div> 
        
        <script type="text/javascript">
        var tree = new DynamicTree("tree");
        tree.init();
        </script>       
    </div>
    <div class="midtxt">
        <form>
            <input type="button" value="Indietro" onClick="javascript:history.back()" name="button">
        </form>
    </div>
    </div>